package com.dylan.channel.v6.channel;


import com.dylan.channel.v6.EventLoop;
import com.dylan.channel.v6.future.ChannelPromise;

public interface Channel {

    /**
     * Return the {@link EventLoop} this {@link Channel} was registered to.
     * 每个channel都绑定在一个EventLoop中
     */
    EventLoop eventLoop();

    Unsafe unsafe();


     interface Unsafe {

        void register(EventLoop eventLoop, ChannelPromise promise);

    }
}
